<template>
  <div class="hello" @keyup="keyup">
    <div>
      <node-view ref="nodeview"></node-view>
    </div>
    <container ref="container"></container>
  </div>
</template>

<script>
import Container from '@/components/Container'
import NodeView from '@/components/NodeView'

export default {
  name: 'HelloWorld',
  components: {
    Container,
    NodeView
  },
  props: {
    msg: String
  },
  data () {
    return {}
  },
  methods: {
    keyup (event) {
      console.log(event)
    }
  },
  mounted () {
    this.$refs.nodeview.init(this.$refs.container)
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped lang="scss">
  .hello {
    text-align: center;
  }
</style>
